import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new MaterialApp(
      home: new Scaffold(
          appBar: new AppBar(
            title: new Text('DecoratedBox'),
            backgroundColor: Colors.orange,
          ),
          body: new Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              new Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  new Padding(
                    padding: EdgeInsets.only(top: 20),
                    child: new Container(
                      constraints: new BoxConstraints(
                        maxWidth: 200,
                        maxHeight: 200,
                      ),
                      decoration: new BoxDecoration(
                        gradient: LinearGradient(colors: [Colors.red, Colors.blue]),
                        image: DecorationImage(
                            image: AssetImage(
                          'assets/images/food05.jpeg',
                        )),
                        borderRadius: BorderRadius.circular(10),
                        boxShadow: [
                          BoxShadow(
                            color: Colors.black54,
                            offset: Offset(0, 3),
                            blurRadius: 5
                          ),
                          BoxShadow(
                            color: Colors.red,
                            offset: Offset(5, 0),
                            blurRadius: 10,
                          )
                        ],
                      ),
                    ),
                  )
                ],
              )
            ],
          )),
    );
  }
}
